package com.zhoukx.adapter.objectadpater;

/**
 * 测试类
 */
public class Client {
    public static void main(String[] args) {
        System.out.println("对象适配器模式");
        Phone phone = new Phone();
        VoltageAdeapter voltageAdeapter = new VoltageAdeapter(new Voltage220V());
        phone.charging(voltageAdeapter);
    }
}
